package com.rustic.server.vo;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.RusticAdmin;

import java.util.Date;

/**
 * 表[rustic_admin]对应VO类
 *
 * @author auto
 */

@Data
public class RusticAdminVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 乡村id
     */
    @ApiModelProperty(value = "乡村id", dataType = "int")
    private int rusticId;

    /**
     * 管理员id
     */
    @ApiModelProperty(value = "管理员id", dataType = "int")
    private int adminId;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id", dataType = "int")
    private int roleId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    public RusticAdminVO(RusticAdmin rusticAdmin) {
        if (rusticAdmin != null) {
            BeanUtil.copyProperties(rusticAdmin, this);
        }
    }
}
